package com.jvm;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: tgy
 * @Date: 2020-09-03 16:51
 *
 *
 * -Xms10M -Xmx10M -XX:+PrintGCDetails
 */
public class JVMTest02 {

    public static void main(String[] args) {


        ArrayList<Byte[]> bytes = new ArrayList<>();

        for (int i = 0; i < Integer.MAX_VALUE; i++) {

            Byte[] bytes1 = new Byte[521];

            bytes.add(bytes1);
        }


    }
}
